package com.yc;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "spring.datasource")
@Data
public class DbConfig {

    private String url;
    private String username;
    private String password;
    private String driverClassName;

    // getters and setters
}
